﻿@using Matrix.MaKaYunShang.Model.Dto
@using Matrix.MaKaYunShang.Model.Enum
@{
    Layout = null;
    var currentUser = ViewBag.CurrentUser as McAccountDto;
    var isDelivery = currentUser.RoleId == (int)CommonEnum.McAccountRole.Delivery;
}

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>码云卡 - 配送管理系统 店铺版</title>
        <!-- Alertify CSS -->
        <link href="/Content/alertify-js/css/alertify.css" rel="stylesheet" />
        <!-- Main Frame CSS -->
        <link href="/Content/admin/dist/css/main-frame.css" rel="stylesheet" />
    </head>
    <body>
        <input id="curShop" type="hidden" value="@ViewBag.CurrentShopId"/>
        <input id="curAccount" type="hidden" value="@ViewBag.CurrentAccountId" />
        <audio id="notifier" src="/Content/admin/resource/message.mp3" preload="auto"></audio>
        @*<audio id="notifier" src="/Content/admin/resource/message.mp3" controls="controls" style="display: none;"></audio>*@
        <iframe src="@(isDelivery ? "/Orders/List" : "/Home/Index")" id="frame" name="frame" scrolling="auto" frameborder="0"></iframe>
        <div class="div-loading">
            <img alt="loading" src="/Content/admin/image/loader.gif" />
        </div>
        <div class="page-footer">
            <p>&copy; @DateTime.Now.Year - 云迈天行科技有限责任公司提供技术支持</p>
        </div>
        
        <!-- Reference the JQuery -->
        <script src="/Content/admin/bower_components/jquery/dist/jquery.min.js"> </script>
        <!-- Alertify JQuery -->
        <script src="/Content/alertify-js/js/alertify.js"></script>
        <!--Reference the SignalR library. -->
        <script src="/Scripts/jquery.signalR-2.2.0.min.js"> </script>
        <!--Reference the autogenerated SignalR hub script. -->
        <script src="/signalr/hubs"> </script>
        <script src="/Content/admin/dist/js/main-frame.js"> </script>
    </body>
</html>